#ifndef ACDAEMON_H
#define ACDAEMON_H

typedef struct __AcDaemon *AcDaemon;

int acdaemon_daemonize_default();
int acdaemon_daemonize(AcDaemon);

AcDaemon acdaemon_new();
void acdaemon_free(AcDaemon);

int acdaemon_get_umask(AcDaemon);
AcDaemon acdaemon_set_umask(AcDaemon, int);

/*int acdaemon_get_max_fd(AcDaemon);
AcDaemon acdaemon_set_max_fd(AcDaemon, int);*/

char* acdaemon_get_work_dir(AcDaemon);
AcDaemon acdaemon_set_work_dir(AcDaemon, const char*);

char* acdaemon_get_stdin(AcDaemon);
AcDaemon acdaemon_set_stdin(AcDaemon, const char*);

char* acdaemon_get_stdout(AcDaemon);
AcDaemon acdaemon_set_stdout(AcDaemon, const char*);

char* acdaemon_get_stderr(AcDaemon);
AcDaemon acdaemon_set_stderr(AcDaemon, const char*);


#endif
